﻿namespace Peter.Common
{
   /// <summary>
   /// Interface for a closable item in peter.
   /// </summary>
   public interface IClosable
   {
      /// <summary>
      /// Gets if the item is ok to close.
      /// </summary>
      bool OkToClose { get; }

      /// <summary>
      /// Called when the item is closing.
      /// </summary>
      void Close ();
   }
}
